#水仙花
# for bai in range(1,10):
#     for shi in range(0,10):
#         for ge in range(0,10):
#             if bai*100+shi*10+ge==bai**3+shi**3+ge**3:
#                 print(bai*100+shi*10+ge)
from random import randint

#斐波那契数列
# a=0
# b=1
# for i in range(1,10+1):
#     a, b = b, a + b#先计算后赋值
#     print(a)

#100以内的质数
# i=2
# for i in range(2,100):
#     for j in range(2,i):
#         if i%j==0:
#             break
#     else:
#          print(i)

#九九乘法表
# for i in range(1,10):
#     for j in range(1,i+1):
#         print(f'{j}x{i}={j*i}',end=' ')#格式化字符串，占位符
#     print()


#100以内的完数
# for i in range(1,100+1):
#     sum=0
#     for j in range(1,i):
#         if i%j==0:
#             sum+=j
#     if sum ==i:
#         print(f'{i}是完数')

# row=eval(input("请输入菱形行数"))
# while row%2==0:
#     print("请输入一个奇数行！")
#     row=eval(input("重新输入："))
# top_row=(row+1)//2
# for i in range(1,top_row+1):
#     for j in range(1, i + 2):
#         print(('*'*j).center(row))
#     print()  # 当两个并列的for循环执行完成后，再换行


#  # 打印菱形2 多层循环嵌套
# n = 6  # 可以调节这个值来改变菱形的大小
# # 上半部分
# for i in range(1, n + 1):
#     # 打印空格
#     for j in range(n - i):
#         print(" ", end="")
#
#         # 打印星号
#     for k in range(1, 2 * i):#具体而言，2 * i 的计算是为了确定在第 i 行需要打印多少个星号。 2*i-1
#         print("*", end="")
#
#     print()  # 换行
#
# # 下半部分
# for i in range(n - 1, 0, -1):
#     # 打印空格
#     for j in range(n - i):
#         print(" ", end="")
#
#         # 打印星号
#     for k in range(1, 2 * i):
#         print("*", end="")
#
#     print()  # 换行
#
# num=randint(1,100)
# while True:
#     gusee=int(input("shuzi"))


# for i in range(1,100+1):
#     if i%3==0 and i%7==0:
#         print(i)

# num =randint(1,31)
# while True:
#     guess=int(input("猜的数字是："))
#     if guess>num:
#         print("猜大了")
#     elif guess<num:
#         print("猜小了")
#     else:
#         print("猜对了")
#         break
#
#
# for i in range(1,10):
#     for j in range(1,i+1):
#         print(f"{j}x{i}={i*j}",end=" ")
#     print( )

# for i in range(1,10):
#     for j in range(0,10):
#         for k in range(0,10):
#             if i**3+j**3+k**3==i*100+j*10+k:
#                 print(i*100+j*10+k)
#100以内的质数
# for i in range(2,100):
# #     for j in range(2,i):
# #         if i%j==0:
# #             break
# #     else:
# #         print(i)

#100以内的完数
# for i in range(1,100):
#     sum =0
#     for j in range(1,i):
#         if i%j==0:
#             sum+=j
#     if sum==i:
#         print(f"{i}是完数")

# a=0
# b=1
# for i in range(1,10):
#     a,b=b,a+b
#     print(a)

# for i in range(1,11+1,2):
#     print(("*"*i).center(11))
# for i in range(9,0,-2):
#     print(("*"*i).center(11))

# n=6
# for i in range(1,n+1):
#     for j in range(n-i):
#         print(" ",end="")
#     for k in range(1,2*i):
#         print("*",end="")
#     print()
# for i in range(n-1,0,-1):
#     for j in range(n-i):
#         print(" ",end="")
#     for k in range(1,2*i):
#         print("*",end="")
#     print()
# for i in range(1,11+1,2):
#     print(("*"*i).center(11))
# for i in range(9,0,-2):
#     print(("*"*i).center(11))

n=6
for i in range(1,n+1):
    for j in range(n-i):
        print(" ",end="")
    for k in range(1,i*2):
        print("*",end="")
    print()
for i in range(n-1,0,-1):
    for j in range(n-i):
        print(" ",end="")
    for k in range(1,i*2):
        print("*",end="")
    print()